/************************************************************
* author: alexander.aivars <alexander.aivars&#64;svt.se>
* $Date: 2008-06-03 13:52:28 +0000 (Tue, 03 Jun 2008) $
* $Revision: 2 $
* $HeadURL: http://svt-api.googlecode.com/svn/trunk/src/se/svt/web/models/NetData.as $
* $Id: NetData.as 2 2008-06-03 13:52:28Z alexander.aivars $
************************************************************/
package se.svt.web.models
{
	import flash.events.Event;
	import flash.events.EventDispatcher;
	import flash.events.IEventDispatcher;
	
	/**
	* Dispatched after a value is modified.
	*
	* @eventType se.svt.web.events.NetDataRequestEvent.COMPLETE
	*/
	[Event(name="change", type="flash.events.Event")]
	

	public class NetData extends EventDispatcher
	{
		private var _responseXml:XML;

		public function NetData(target:IEventDispatcher=null)
		{
			//TODO: implement function
			super(target);
		}
		
		public function update():void
		{
			dispatchEvent(new Event(Event.CHANGE));
		}
		
		public function set responseXml(xml:XML):void 
		{
			_responseXml = xml;
			update();			
		}
		
		public function get responseXml():XML 
		{
			return _responseXml;
		}

		
	}
}